/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.apache.skywalking.oap.query.graphql.type;

import lombok.*;
import org.apache.skywalking.oap.server.core.query.entity.*;

@Getter
@Setter
public class TraceQueryCondition {
    private String serviceId;
    private String serviceInstanceId;
    private String traceId;
    private String endpointName;
    private String endpointId;
    // 指定查询的时间跨度
    private Duration queryDuration;
    // 指定 TraceSegment 耗时范围，只查询耗时在 minTraceDuration~maxTraceDuration 之间的 Trace
    private int minTraceDuration;
    private int maxTraceDuration;

    // Trace 的状态信息，枚举，可选值有 ALL、SUCC、ERROR 三个值
    private TraceState traceState;
    // 查询结果的排序方式，枚举，可选值有 BY_DURATION、BY_START_TIME 两个值
    private QueryOrder queryOrder;
    // 分页信息，类似于 SQL 语句中的 limit 部分，指定了此次查询的起始位置以及结果条数
    private Pagination paging;
}
